//
//  TYZBaseView.h
//  TYZKit
//
//  Created by TangBin on 2018/6/8.
//  Copyright © 2018年 TangBin. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface TYZBaseView : UIView

@property (nonatomic, strong, nullable) NSMutableArray *viewList;

@property (nonatomic, strong, nullable) NSMutableArray *dataList;

@property (nonatomic, copy) void(^ _Nullable viewBlock)(id _Nullable data);

- (void)initWithVar;

- (void)initWithSubView;

- (void)updateWithViewData:(id _Nullable )data;

/**
 Description
 
 @param borderLine 是否有边框
 */
- (void)addViewShadow:(BOOL)borderLine shadowOffset:(CGSize)shadowOffset shadowColor:(nullable UIColor *)shadowColor;

- (void)addViewShadow:(BOOL)borderLine shadowOffset:(CGSize)shadowOffset shadowColor:(nullable UIColor *)shadowColor borderColor:(nullable UIColor *)borderColor;


/**
 加上阴影，边框
 */
- (void)addViewShadow;

- (void)addViewShadow:(BOOL)borderLine borderColor:(nullable UIColor *)borderColor;

- (void)addViewShadow:(BOOL)borderLine borderColor:(nullable UIColor *)borderColor borderWidth:(CGFloat)borderWidth;

+ (CGFloat)viewHeight;

+ (CGFloat)viewWidth;

@end

